//
//  deskImageCollectionCell.m
//  BeautyPicture
//
//  Created by 沈振邦 on 15/8/18.
//  Copyright (c) 2015年 szb. All rights reserved.
//

#import "BPProductInfoCell.h"

@implementation BPProductInfoCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _deskShowImage = [[UIImageView alloc] initWithFrame:self.bounds];
        [self addSubview:_deskShowImage];
        _deskShowImage.contentMode = UIViewContentModeScaleAspectFit;
        CGFloat btnW = 18.0f;
        UIImageView *detailBtn = [[UIImageView alloc] initWithFrame:CGRectMake(frame.size.width - btnW - 3.0, frame.size.height - btnW - 3.0, btnW, btnW)];
        detailBtn.image = [UIImage imageNamed:@"detailBtn"];
        [self addSubview:detailBtn];
        
        [self.layer setBorderColor:[BPGlobaBGColor CGColor]];
        [self.layer setBorderWidth:0.7];
    }
    return self;
}

@end
